//
//  UIView+JwNib.m
//  JwPack
//
//  Created by 陈警卫 on 2022/8/24.
//

#import "UIView+JwNib.h"

@implementation UIView (JwNib)

+ (instancetype)jw_viewFromNib {
    return [self jw_viewFromNibName:NSStringFromClass(self.class)];
}

+ (instancetype)jw_viewFromNibName:(NSString *)nibName {
    NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:nibName owner:self options:nil];
    return [nibs firstObject];
}


@end
